package com.dhcc.bpm.modules.develop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.modules.develop.entity.Code;
import com.dhcc.bpm.modules.develop.service.ICodeService;
import com.dhcc.bpm.modules.develop.mapper.CodeMapper;
import org.springblade.core.tool.constant.BladeConstant;
import org.springframework.stereotype.Service;

/**
 * @ClassName CodeServiceImpl
 * @Description  服务实现类
 * @Author YaoZC
 * @Date 2020/01/19 15:32
 * @Version 1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service
public class CodeServiceImpl extends ServiceImpl<CodeMapper, Code> implements ICodeService {

	/**
	 * @Description 新增或修改
	 * @Author xiafayu
	 * @Date 2020/2/24 20:16
	 * @param code
	 * @return boolean
	 * @throws
	 **/
	@Override
	public boolean submit(Code code) {
		code.setIsDeleted(BladeConstant.DB_NOT_DELETED);
		return saveOrUpdate(code);
	}

}
